/*
 * @Author: wangzhongjie
 * @Date: 2019-01-15 13:24:55
 * @LastEditors: wangzhongjie
 * @LastEditTime: 2019-01-15 13:26:00
 * @Description: 轮播图小组件
 * @Email: uvdream@163.com
 */
import 'package:flutter/material.dart';
import 'package:uvdream/uvdream.dart';

//新手
class NoviceReward extends StatelessWidget{
  @override
  Widget build(BuildContext context){
    return Row(
      children: <Widget>[
        new Container(
          width: MediaQuery.of(context).size.width ,
          height: 80,
          alignment:Alignment.bottomCenter,
          child: Image.asset("images/home/newPeople.png",fit:BoxFit.fill),
        )
      ],
    );
  }
}
// 轮播图
class HomeSwiper extends StatelessWidget{
  @override
  Widget build(BuildContext context){
    return  Swiper(
          indicatorAlignment: AlignmentDirectional.bottomEnd,
          speed: 400,
          indicator: CircleSwiperIndicator(),
          children: <Widget>[
            Image.asset("images/home/swiper1.jpeg",fit: BoxFit.fill,),
            Image.asset("images/home/swiper2.jpeg", fit: BoxFit.fill),
            Image.asset("images/home/swiper3.jpeg",fit: BoxFit.fill,),
            Image.asset("images/home/swiper4.jpeg",fit: BoxFit.fill,),
            Image.asset("images/home/swiper5.jpeg",fit: BoxFit.fill,),
          ],
    );
  }
}